<template>
  <result
    :isSuccess="true"
    :content="false"
    :title="type === 'add' ? '新增方案成功' : '复制新增方案成功'"
    :description="description"
  >
    <template slot="action">
      <!-- <a-button size="large" type="primary">查看邮箱</a-button> -->
      <el-button size="large" style="margin-left: 8px" @click="goBack">返回列表</el-button>
    </template>
  </result>
</template>

<script>
import { Result } from '@/components'

export default {
  components: {
    Result
  },
  data() {
    return {
      type: this.$route.params.type,
      description: null
    }
  },
  methods: {
    goBack() {
      this.$router.push({
        name: 'moralityScheme'
      })
    }
  },
  created() {
    this.description = this.type === 'add' ? '新增考评方案成功，可返回列表查看' : '修改考评方案成功，可返回列表查看'
  }
}
</script>

<style>
</style>